﻿#pragma once

#include "Game.h"
#include "GameBoard.h"

// 主窗口
class MainWindow: public CDialog {
    DECLARE_MESSAGE_MAP()

    private: Game* mGame;               // 游戏
    private: GameBoard mGameBoard;      // 游戏区域
    private: CStatusBarCtrl mStatusBar; // 状态栏

    public: MainWindow(CWnd* parent = NULL);
    public: ~MainWindow();
    private: virtual BOOL OnInitDialog();
    private:  LRESULT OnGameOver(WPARAM, LPARAM);
    private: LRESULT OnGotoLevel(WPARAM, LPARAM);
    private: LRESULT OnManMoved(WPARAM, LPARAM);
    private: afx_msg void OnMenuItemRestartClicked();
    private: afx_msg void OnMenuItemSelectLevelClicked();
    private: afx_msg void OnMenuItemUndoClicked();
    private: virtual BOOL PreTranslateMessage(MSG*);
};
